package cards;

import java.awt.Image;
import java.awt.image.BufferedImage;

public class JieDao extends InstantMagic {
	// IMPORTANT, card class doesn't rewrite paint(). it rewrite IMAGE
	public static BufferedImage image;

	public static void ImageInit(BufferedImage toBinit) {
		image = toBinit;
	}

	@Override
	public BufferedImage getImage() {
		return image;
	}
	public JieDao(){
		this(0,0);
	}
	public JieDao( int c, int n) {
		super("JieDao", c, n, "Choose a hero (A) with a weapon and choose another hero (B), A have to choose one option below: 1. play an Attack on B, or 2. give his/her weapon to the source of this magic.");
		// TODO Auto-generated constructor stub
	}
	@Override
	public boolean instanceOf(String superClass) {
		if (super.instanceOf(superClass)) {
			return true;
		}
		if (superClass.equalsIgnoreCase("JieDao")) {
			return true;
		}
		return false;
	}
}
